#ifndef __BASIC_IS_SPACE__
#define __BASIC_IS_SPACE__


#include <locale>

// predicate-like function that can be used with the STL algorithms (eg: find_if)
//   and quite often used


inline bool isSpace( char c ) {

  return std::isspace( c ) ? true : false;
}


inline bool isNotSpace( char c ) {

  return std::isspace( c ) ? false : true;
}





#endif  //   __BASIC_IS_SPACE__
